package com.nobuyme.box.toy;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.nobuyme.box.R;
import com.nobuyme.box.util.FragmentUtils;
import com.pachong.android.baseuicomponent.activity.BaseActivity;

import butterknife.OnClick;


public class UserHelpActivity extends BaseActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        hideToolbar();
    }


    public static final void start(Activity activity) {
        Intent intent = new Intent(activity, UserHelpActivity.class);
        activity.startActivity(intent);
    }

    @Override
    public View createDataView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View inflate = inflater.inflate(R.layout.activity_user_help, null);
        FragmentUtils.replaceFragment(getSupportFragmentManager(), R.id.fl_user_detail, new UserHelpFragment());
        return inflate;
    }

    @OnClick(R.id.iv_user_back)
    public void onViewClicked() {
        finish();
    }
}
